# -*- coding:UTF-8 -*-
import os

def search_file(filename , search_paths , path_sep = os.pathsep):
	for path in search_paths.split(path_sep):
		candidate = os.path.join(path,filename)
		if os.path.isfile(candidate):
			return os.path.abspath(candidate)

if __name__ == '__main__':
	print search_file('_vimrc','D:\\vim')
